interconnected range
code:python
from cabocha.analyzer import CaboChaAnalyzer
analyzer = CaboChaAnalyzer()
tree = analyzer.parse(
"The one I'm working on now is also characterized by "many atoms, often with multiple components depending on one atom or multiple components depending on multiple atoms, and I want to redraw only some of the components when the atom changes", so Recoil's approach seems to fit very well.")
start = 0
while start < tree.chunk_size:
i = start
while True:
if treei.next_link_id == i + 1: result.append(treei + 1.surface) i += 1
else:
break
print(start, result, treei.next_link_id) start = i + 1
code::
Sharpen particles and conjugations (manual work, would like to support this mechanically as well).
code::
me
What we're working on now
Lots and lots of atoms.
often
Multiple components
Depends on one atom
There are components that depend on multiple atoms.
Change atom
I want to redraw only some components.
The Recoil Approach
Looks like it fits very well.
code::
input
I'm used to making short stickies, or shortening a long sentence, but people aren't used to it, so they put in long sentences and make "stickies that are too small to read".
expected output
me
Make a short sticky note
Chop what you've written in long sentences into shorter ones.
I'm used to it.
worldling
I'm not used to it.
I'd put it in a long sentence.
Sticky note with letters too small to read
I'll make it.
This is a failure in the engage analysis.
---
This page is auto-translated from /nishio/係り受け連続範囲. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.